﻿<%@ Page Language="C#" AutoEventWireup="true"  MasterPageFile="~/Site.master" CodeBehind="MyRequestHistory.aspx.cs" Inherits="YBApproval.MyRequestHistory" Culture="zh-CN" UICulture="zh-CN" %>
<%@ MasterType VirtualPath="~/Site.master" %>  
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxCT" %>


<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">    
    <style type="text/css">
        .Calender
        {
            background-color: #ffffff;
        }
    </style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div>        
    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="2">
    <tr><td><label>申请编号</label></td><td><asp:TextBox ID=txtRecoldId runat=server Width=210px/></td><td><label>流程名称</label></td><td colspan=2><asp:TextBox ID=txtProcessName runat=server Width=210px/></td></tr>
    <tr><td><label>提交日期</label></td><td><asp:TextBox ID=txtStartSubmit runat=server Width=97px/><span style="width:10px;">至</span><asp:TextBox ID=txtEndSubmit runat=server Width=97px/></td><td><label>结束日期</label></td><td><asp:TextBox ID=txtStartClose runat=server Width=97px/><span style="width:10px;">至</span><asp:TextBox ID=txtEndClose runat=server Width=97px/>
        &nbsp;</td><td>
            <asp:ImageButton ImageUrl="~/images/search-button.gif" runat="server" ID=imbSearch onclick="imbSearch_Click" /></td></tr>
                       
    <tr><td colspan=5>&nbsp;</td></tr>
    <tr><td colspan=5>
    <asp:GridView runat=server ID=gvMyInprocess AutoGenerateColumns="False"  
            Width="100%" EmptyDataText="没有符合条件的查询结果！" BorderStyle=None 
            onrowcommand="gvMyInprocess_RowCommand">
    <emptydatarowstyle backcolor="LightBlue"  forecolor="Red"/>
                            <Columns>
                                    <asp:BoundField DataField="RecordId" HeaderText="申请编号" HeaderStyle-Width="20%"/>
                                    <asp:BoundField DataField="ProcessName" HeaderText="名称" HeaderStyle-Width="30%"/>
                                    <asp:BoundField DataField="StepName" HeaderText="步骤" HeaderStyle-Width="20%"/>
                                    <asp:BoundField DataField="SubmitDate" HeaderText="提交日期" HeaderStyle-Width="20%"/>
                                    <asp:TemplateField ShowHeader="False" HeaderStyle-Width="10%">
<ItemTemplate>
<asp:LinkButton ID="btnView" runat="server" CausesValidation="False" CommandName="ViewDetail" Text="查看"  CommandArgument='<%# Bind("RecordId") %>' ></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
                                </Columns>
                                <HeaderStyle Font-Bold="False" Font-Size="Small" />
                            </asp:GridView></td></tr>     
    </table>
    <ajaxCT:CalendarExtender ID="CalendarExtender1" runat="server"
    TargetControlID="txtStartSubmit"
    CssClass="Calender"
    PopupPosition=BottomLeft
    Format="yyyy-MM-dd"/>
    <ajaxCT:CalendarExtender ID="CalendarExtender2" runat="server"
    TargetControlID="txtEndSubmit"
    CssClass="Calender"
    PopupPosition =BottomLeft
    Format="yyyy-MM-dd" />
    <ajaxCT:CalendarExtender ID="CalendarExtender3" runat="server"
    TargetControlID="txtStartClose"
    CssClass="Calender"
    PopupPosition=BottomLeft
    Format="yyyy-MM-dd"/>
    <ajaxCT:CalendarExtender ID="CalendarExtender4" runat="server"
    TargetControlID="txtEndClose"
    CssClass="Calender"
    PopupPosition =BottomLeft
    Format="yyyy-MM-dd" />
    </div>
</asp:Content>
